<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        arr = [1, 2]
        let i = 1
        console.log(arr[i--]);//输出是2 意思是输出arr[1],但同时自减 
        //  误区会以为是输出为arr[0]

    </script>
</body>

</html>